!function (e, t) { var n = "tenping", o = location.protocol + "//api.tenping.kr/Query", i = "scriptrequest", r = "tenping_gaid"; function a() { var e = u(r); return "" != e ? e.split("/") : null } function c(e, t, n) { try { var o = new Date; o.setDate(o.getDate() + n), cookies = e + "=" + escape(t) + "; path=/ ", cookies += ";domain=" + function () { var e = 0, t = document.domain, n = t.split("."), o = "_gd" + (new Date).getTime(); for (; e < n.length - 1 && -1 == document.cookie.indexOf(o + "=" + o);)t = n.slice(-1 - ++e).join("."), document.cookie = o + "=" + o + ";domain=" + t + ";"; return document.cookie = o + "=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=" + t + ";", t }(), void 0 !== n && (cookies += ";expires=" + o.toGMTString() + ";"), document.cookie = cookies } catch (e) { } } function d(e, t, n) { var o = u(e); c(e, "" == o || null == o ? t : "" == t ? o : t, n) } function u(e) { try { e += "="; var t = document.cookie, n = t.indexOf(e), o = ""; if (-1 != n) { n += e.length; var i = t.indexOf(";", n); -1 == i && (i = t.length), o = t.substring(n, i) } return unescape(o) } catch (e) { return "" } } function s(t) { try { return unescape(e.location.search.replace(new RegExp("^(?:.*[&\\?]" + escape(t).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1")) } catch (e) { return "" } } function l() { try { var e = s("jid"), t = s("uid"), n = s("cid"), o = s("at"), i = s("did"); return "" == e ? "" : cookieValue = "" == i ? String(n) + "=" + String(e) + "|" + String(t) + "|" + String(o) : String(n) + "=" + String(e) + "|" + String(t) + "|" + String(o) + "|" + String(i) } catch (e) { return "" } } var p = function () { var t = a(); function n() { dataLayer.push(arguments) } e.dataLayer = e.dataLayer || [], n("js", new Date), n("config", t[0]), n("event", "conversion", { send_to: t[0] + "/" + t[1] }) }; e.TenpingScript = { SendConversion: function (r) { r != t && "" != r && (i = r); var c = function () { try { var e = function () { try { var e = u(n); return arrCValue = e.split("="), arrCValue[1] } catch (e) { return "" } }(); if ("" != e) { var t = e.split("|"), r = location.href ? "&ref=" + encodeURIComponent(location.href) : ""; if (3 == t.length) return o + "?jid=" + t[0] + "&uid=" + t[1] + "&at=" + t[2] + "&key=" + i + r; if (4 == t.length) return o + "?jid=" + t[0] + "&uid=" + t[1] + "&at=" + t[2] + "&did=" + t[3] + "&key=" + i + r } return "" } catch (e) { return "" } }(); if ("" != c) { !function (t) { var n = document.createElement("img"); if (n.setAttribute("height", "1"), n.setAttribute("width", "1"), n.setAttribute("style", "border-style:none;display:none"), n.src = t, document.body) document.body.appendChild(n); else if (document.addEventListener) document.addEventListener("DOMContentLoaded", function () { document.body.appendChild(n) }, !1); else if (document.attachEvent) document.attachEvent("onreadystatechange", function () { "complete" === document.readyState && document.body.appendChild(n) }); else if (e.addEventListener) e.addEventListener("load", function () { document.body.appendChild(n) }, !1); else if (e.attachEvent) e.attachEvent("onload", function () { document.body.appendChild(n) }); else { var o = e.onload; e.onload = function () { o && o(), document.body.appendChild(n) } } }(c); try { null != a && function (e, t) { var n = document.createElement("script"); n.src = e, n.async = !0, n.onload = t, document.getElementsByTagName("head")[0].appendChild(n) }("https://www.googletagmanager.com/gtag/js?id=" + a()[0], p) } catch (e) { } } } }, function () { "" != l() && (d(n, l(), Number(s("rd"))), u(n)); var e = function () { var e = s("gaid"); return "" != e ? e.split("/") : "" }(); if ("" != e) try { d(r, e[0] + "/" + e[1], Number(s("rd"))) } catch (e) { } }(), e.parent.postMessage({ AdvertiserLocation: e.location.href }, "*") }(window);